package com.acme.bankapp.domain.bank;

import java.util.Comparator;

public class AccountsCompare implements Comparator<AbstractAccount> {
	public int compare(AbstractAccount o1, AbstractAccount o2) { 
		Double d1 = new Double (o1.balance);
		Double d2 = new Double (o2.balance);
	return d1.compareTo(d2); 
	} 
}
